<?php
use Illuminate\Http\Request;

$router->group(['prefix' => 'apply'], function ($router) {
    $router->get('ajaxIndex', 'ApplyController@ajaxIndex');
    $router->post('review', 'ApplyController@review');
    $router->get('{id}/getReview', 'ApplyController@getReview');
    $router->get('{id}/delete', 'ApplyController@destroy');
    $router->get('stat', 'ApplyController@stat');
    $router->get('search', function (Request $request) {
        return App\Models\Apply::search($request->kw)->get();
    });
});
$router->resource('apply', 'ApplyController');
